﻿using Abp.Domain.Entities.Auditing;
using SingleUserMall.Authorization.Users;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SingleUserMall.Orders
{
    public class GroupOrderDetail : FullAuditedEntity<long>
    {
        /// <summary>
        /// 订单id
        /// </summary>
        public long OrderId { get; set; }
        [ForeignKey("OrderId")]
        public virtual Order Order { get; set; }
        /// <summary>
        /// 团购订单id
        /// </summary>
        public long GroupOrderId { get; set; }
        [ForeignKey("GroupOrderId")]
        public virtual GroupOrder GroupOrder { get; set; }
        /// <summary>
        /// 是否有效
        /// </summary>
        public bool IsValid { get; set; }
    }
}
